package com.sskj.b70.m.bean;

import android.text.TextUtils;

import java.math.BigDecimal;

/**
 * 作者 :吕志豪
 * 简书：https://www.jianshu.com/u/6e525b929aac
 * github：https://github.com/lvzhihao100
 * 描述：
 * 创建时间：2018-07-31 15:41
 */
public class UserCoinInfo {

    /**
     * id :
     * stockCode : USDT
     * stockName :
     * stockType :
     * usableFund : 18720.6
     * frostFund : 43
     * inAllFee :
     * outAllFee :
     */

    private String id;
    private String stockCode;

    private String usableFund;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getStockCode() {
        return stockCode;
    }

    public void setStockCode(String stockCode) {
        this.stockCode = stockCode;
    }


    public String getUsableFund() {
        return TextUtils.isEmpty(usableFund) ? 0+"" : new BigDecimal(usableFund+"").toPlainString();
    }

    public void setUsableFund(String usableFund) {
        this.usableFund = usableFund;
    }

}
